package com.situ.day12;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

import org.omg.CORBA.PRIVATE_MEMBER;

import com.situ.day07.Person;
import com.situ.day07.Student;
import com.situ.day10.E;

public class ExceptionDemo {
	
	public static void main(String[] args) {
//		int a = 2;
//		int b = 0;
//		
//		System.out.println("###############");
//		try {
//			int sum = a / b;
//		} catch (ArithmeticException e) {
//			e.printStackTrace();
//		}finally {
//			System.out.println("ExceptionDemo.main()");
//		}
//		System.out.println("###############");
		
		
//		
//		Person person =new Person();
//		Student student = new Student();
//		System.out.println("start");
//		try {
//			student = (Student) person;
//		} catch (Exception e) {
//			e.printStackTrace();
//		}finally {
//			System.out.println("ExceptionDemo.main()");
//		}
//		System.out.println("end");
		
		
		
		try {
			FileInputStream fileInputStream = new FileInputStream("xxt.txt");
		}
		catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		try {
			fun();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	private static void fun() throws FileNotFoundException {
		FileInputStream fileInputStream = new FileInputStream("XXT.txt");
	}
	
}
